var tools = require("../../utils/tools.js")
var app = getApp()
Page({
  data: {
    width: '',
    height: '',
    imageTarget: ''
  },
  onLoad: function (options) {
    var syInfo = wx.getSystemInfoSync();
    console.log("info===", JSON.stringify(syInfo))
    this.setData({
      width: syInfo.windowWidth,
      height: syInfo.windowHeight,
      imageTarget: app.globalData.imageTarget
    })
  },
  bindSavePhoto:function(){
    tools.onTapSavePicture(this.data.imageTarget)
  }
})